package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 坐标表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-07-17
 */
@TableName("bus_coordinate")
public class Coordinate extends Model<Coordinate> {

    private static final long serialVersionUID = 1L;

    /**
     * 坐标Id
     */
    @TableId(value = "coordinate_id", type = IdType.AUTO)
    private Integer coordinateId;
    /**
     * 电子围栏Id
     */
    @TableField("ele_fence_id")
    private Integer eleFenceId;
    /**
     * 点号
     */
    @TableField("point_no")
    private String pointNo;
    /**
     * 经度
     */
    private BigDecimal lng;
    /**
     * 维度
     */
    private BigDecimal lat;


    public Integer getCoordinateId() {
        return coordinateId;
    }

    public void setCoordinateId(Integer coordinateId) {
        this.coordinateId = coordinateId;
    }

    public Integer getEleFenceId() {
        return eleFenceId;
    }

    public void setEleFenceId(Integer eleFenceId) {
        this.eleFenceId = eleFenceId;
    }

    public String getPointNo() {
        return pointNo;
    }

    public void setPointNo(String pointNo) {
        this.pointNo = pointNo;
    }

    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    @Override
    protected Serializable pkVal() {
        return this.coordinateId;
    }

    @Override
    public String toString() {
        return "Coordinate{" +
        "coordinateId=" + coordinateId +
        ", eleFenceId=" + eleFenceId +
        ", pointNo=" + pointNo +
        ", lng=" + lng +
        ", lat=" + lat +
        "}";
    }
}
